using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace Presentation.FromInAn
{
    public partial class FrmInPhieuTra : Form
    {
        public string mathe;
        public FrmInPhieuTra()
        {
            InitializeComponent();
        }

        private void FrmInPhieuTra_Load(object sender, EventArgs e)
        {
            UserControlls.rptInPhieu inphieu = new Presentation.UserControlls.rptInPhieu();
            inphieu = new Presentation.UserControlls.rptInPhieu();
            CrystalDecisions.Shared.TableLogOnInfo curtablelog;
            foreach (CrystalDecisions.CrystalReports.Engine.Table curtable in inphieu.Database.Tables)
            {
                curtablelog = curtable.LogOnInfo;
                curtablelog.ConnectionInfo.ServerName = ".";
                curtable.ApplyLogOnInfo(curtablelog);
                inphieu.SetParameterValue("MaThe_Para",mathe);

            }

            crptinphieutra.ReportSource = inphieu;
        }
    }
}